<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>异常信息</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no,email=no,address=no"/>
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <link rel="stylesheet" href="../css/zy_common.css"/>
    <link rel="stylesheet" href="../css/zy_base.css"/>
</head>
<body>
<div class="expendBox" style="padding-bottom: 1.4rem;">
    <ul class="plr24">
        <!--<li class="ptb30 col9 font13 bdb">-->
            <!--<p class="mb20 col3 font15">消息</p>-->
            <!--<p class="mb10">设备编号：4564654665465</p>-->
            <!--<p class="mb10">地址：广东省东莞市南城区高盛科技园</p>-->
            <!--<p class="mb10">设备缺货，请及时补货</p>-->
            <!--<p class="mb10">2018-07-06 14:00</p>-->
        <!--</li>-->
        <!--<li class="ptb30 col9 font13 bdb">-->
            <!--<p class="mb20 col3 font15">消息</p>-->
            <!--<p class="mb10">设备编号：4564654665465</p>-->
            <!--<p class="mb10">地址：广东省东莞市南城区高盛科技园</p>-->
            <!--<p class="mb10">设备缺货，请及时补货</p>-->
            <!--<p class="mb10">2018-07-06 14:00</p>-->
        <!--</li>-->
    </ul>
</div>
</body>
</html>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/dlc.js"></script>
<script>
    $(function () {
        dlctipbox.loading('请稍后');
        dlc_request('/api/exceptionMessage/getExceptionMessageList',{agentId:getLocalData('fd_id')},function (res) {
            dlctipbox.clear();
            if(res.code==1){
                var str='';
                res.data.forEach(function (item,index) {
                    str+= '<li class="ptb30 col9 font13 bdb">'+
                    '<p class="mb20 col3 font15">消息</p>'+
                    '<p class="mb10">设备编号：'+item.addressId+'</p>'+
                    '<p class="mb10">地址：'+item.addressDetail+'</p>'+
                    '<p class="mb10">'+item.context+'</p>'+
                    '<p class="mb10">'+format(item.createTime,'Y-m-d H:i:s')+'</p>'+
                    '</li>';
                })
                if(str){
                    $('.expendBox ul').addClass('bw');
                    $('.expendBox ul').html(str);
                }else{
                    $('.expendBox ul').html(emptyTip('暂无数据'));
                }
            }else{
                dlctipbox.show(res.msg);
            }
        })
    })
</script>
